package com.clf.springBoot.modules.account.entity;

import com.clf.springBoot.modules.common.entity.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * @Author: chenglongfei
 * @date: 2022/7/7
 * @Description User
 */

@Entity
@Table(name = "account_user")
public class User extends AbstractEntity {
        private String userName;
        private String password;
        private String usrImage;
        @Transient
        private List<Role> roles;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsrImage() {
        return usrImage;
    }

    public void setUsrImage(String usrImage) {
        this.usrImage = usrImage;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
